Skip to content

Classify images automatically by similarity ​

In a classification dataset, the auto classifier learns from the images you have already classified and proposes a class for the rest, by how much they look alike. You only check its proposals. Three examples per tag are enough to start; the more you give it, the better it gets.

What you will learn

  • What the auto classifier needs before it starts
  • How to run it and choose how sure it must be
  • How to review its proposals and correct the wrong ones

Before you start

You need a classification or anomaly detection dataset in which every tag has at least three images. The auto classifier runs in the cloud and spends the project's tokens.

1. Activate the auto classifier ​

Open the dataset and click «Labeling». The «Auto classifier» card, on the right, says what is missing: every tag needs at least three images. When they have them, click «Activate». The platform starts the service and prepares every image of the dataset, which takes a moment.

Activate the auto classifier

2. Choose how sure it must be ​

Once active, the card shows «Confidence»: the classifier only proposes a class when it is at least that sure. A high value gives fewer proposals, almost all right; a low one, more proposals to check. Here it goes down to 0.50, because three examples per tag are not much to learn from.

Choose how sure it must be

3. Classify the rest ​

Click «Auto-classify». It classifies only the images nobody has classified yet, and the grid switches to «Review», with its proposals.

Classify the rest

4. Correct a wrong proposal ​

Check each proposal. Here jar_012 is a good jar, proposed as «broken». Tick it and click «Assign tag» in the bar at the bottom, choose the right tag and confirm: the image leaves the review with its new class. Correct the class here, in the grid: changed in the editor, the image stays in the review.

Correct a wrong proposal

5. Confirm the correction ​

Click «Confirm»: the image leaves the review as «ok».

Confirm the correction

6. Accept the rest ​

When the remaining proposals are right, click «Accept»: they keep the class proposed and the review ends. «Reject» sends every image still in review back to «Unclassified», all at once.

Accept the rest

Good to know ​

  • More examples, better proposals. The classifier learns from every classified image. Classify a few more by hand, run it again, and its proposals get better.
  • Inactive again. The card goes back to «Inactive» ten minutes after it was activated, and when the page is reloaded: click «Activate» again.
  • Anomaly detection. In anomaly detection datasets it proposes «Ok» or «Nok» for the whole image, without painting the anomaly.
  • Cost. Activating it reads every image of the dataset, and each run classifies the rest: both spend the project's tokens.
  • By hand, in bulk. Without the classifier, select images in the grid and use «Assign tag» to classify them all at once.

Next steps ​

Recorded on Rosepetal release 1.8.15.